<template>
  <div>
    <Button @click="get">get</Button>
    <Button @click="post">post</Button>
    <Button @click="verify">verify</Button>
  </div>
</template>

<script>
export default {
  methods: {
    get () {
      this.$http.get('/api/hello',
      res => {
        console.log(res)
      })
    },
    post () {
      this.$http.post('/api/hello', {
        name: '周张帆'
      },
      res => {
        console.log(res)
      })
    },
    verify () {
      this.$http.get('/api/verify',
      res => {
        console.log(res)
      })
    },
  }
}
</script>

